<?php
namespace YouHuJun\YouHuTool\Test\Timer;

require_once __DIR__ . '../../src//App/Utils/Timer/Timer.php';

use YouHuJun\YouHuTool\App\Utils\Timer\Timer;


class TestTimer
{
	public function test()
	{
		$timer = new Timer();
		$timer->addTask('test1',function()
		{
			echo "任务1执行：" . date('Y-m-d H:i:s') . "\n";
			//plog(['info' => '任务1执行'],'timer','testtimer');
		},10);

		$timer->start();

	}
}

(new TestTimer())->test();
